//
//  LadyBird.swift
//  eat_known
//
//  Created by 心情 on 2018/8/3.
//  Copyright © 2018年 心情. All rights reserved.
//

import Foundation
import HandyJSON

extension PhaseFoodState {
    static func ladyBird(_ text: Int) -> PhaseFoodState {
        switch text {
        case 0:
            return .OK
        case 1:
            return .Forbidden
        case 2:
            return .Warn
        default:
            return .Unknown
        }
    }
}
